<template>
  <!-- 直播卡片 组件2 -->
  <div class="listItem">
    <!-- 主体 -->
    <div class="content">
      <div class="itemImg">
        <img src="@/assets/imge/defeat_img.png" alt="tp" />
      </div>
      <div class="itemTiter">
        <p>消防安全实训营-公共安全防火知识（04.13）</p>
        <div class="item_name">
          <div class="via">
            <img src="@/assets/imge/defeat_img.png" alt="tp" />
          </div>
          <span>录灵</span>
        </div>
      </div>
    </div>
    <hr />
    <!-- 底部课节、价格 -->
    <div class="item_price">
      <span>共7节课</span>
      <strong>$9.9</strong>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.icon {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.15em;
  fill: currentColor;
}
.listItem {
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 0px 4px 0px #e1e1e1;
  border-radius: 0.5rem;
  box-sizing: border-box;
  background-color: #fff;
  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .itemImg {
      width: 7rem;
      height: 4.5rem;
      text-align: center;
      border-radius: 0.3rem;
      border: 1px solid #e9e9e9;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .itemTiter {
      position: relative;
      flex: 1;
      height: 4.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-left: 0.8rem;
      box-sizing: border-box;
      p {
        width: 100%;
        margin: 0;
        color: #2a2929;
        font-size: 0.9rem;
        padding: 0;
        font-size: 0.88rem;
        font-weight: bold;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        word-break: break-all;
      }
      .item_name {
        display: flex;
        justify-content: start;
        align-items: center;
        .via {
          width: 2rem;
          height: 2rem;
          border-radius: 50%;
          text-align: center;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
      span {
        font-size: 0.8rem;
        color: #686868;
        padding: 0 0.5rem;
      }
    }
  }
  hr {
    width: 100%;
    margin: 0.8rem 0;
    border: 1px dashed #e9e9e9;
  }
  .item_price {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    span {
      color: #838288;
      font-size: 0.88rem;
    }
    strong {
      font-size: 1.2rem;
      font-weight: bold;
      color: #f40520;
    }
  }
}
</style>
